package com.itheima.static_case.Demo7;

public class Cat extends Animal {
    private String Color;

    public Cat() {
    }

    public Cat(String name, String color) {
        super(name);
        Color = color;
    }

    public String getColor() {
        return Color;
    }

    public void setColor(String color) {
        Color = color;
    }

    @Override
    public void print() {
        System.out.println("这是：" + this.getName() + "，颜色：" + this.getColor());
    }
}
